package com.nwcl.ysx.dao;


import com.nwcl.ysx.entity.Subscribe;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author lgq
 * @description 针对表【subscribe(客户预约表)】的数据库操作Mapper
 * @createDate 2023-05-26 10:22:02
 * @Entity .default.Subscribe
 */
@Repository
public interface SubscribeDao {

    List<Subscribe> listByIds(@Param("ids") List<Integer> ids, @Param("status") Integer status);

    void save(Subscribe subscribe);

    List<Subscribe> list(@Param("userId") Integer userId);

    Integer countByUserId(@Param("userId") Integer userId);

    void updateStatusById(@Param("id") Integer id, @Param("status") Integer status);
}




